package com.lxhotel.agentmcp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lxhotel.agentmcp.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    @Select("SELECT * FROM user WHERE username = #{username}")
    User selectByUsername(String name);
    @Select("SELECT * FROM user WHERE mobile = #{mobile}")
    User selectByMobile(String mobile);
}
